import link from './link'

export function getTeacher(url="",method="GET"){
    return link('/teacher')
}

export function changeInfo(id="",method="PUT",data={}){
    return link('/teacher/'+id,method,data)
}

export function deleteTeacher(id="",method="Delete"){
    return link('/teacher/'+id,method)
}

export function addEmployee(params={}){
    return link('/teacher',"post",params)
}